package com.ldp.designpatterns.study.factory.methodFactory.factory;

import com.ldp.designpatterns.study.factory.methodFactory.impl.AmericanCoffee;
import com.ldp.designpatterns.study.factory.methodFactory.service.Coffee;
import org.springframework.stereotype.Service;

/**
 * @ClassName AmericanCoffeeFactory
 * @Description 工厂方法模式：——实现工厂接口——美式咖啡接口
 * @Author lindipei
 * @Date 2023/10/13 15:13
 */
@Service
public class AmericanCoffeeFactory implements CoffeeFactory{
    @Override
    public Coffee createCoffee() {
        return new AmericanCoffee();
    }
}
